﻿<%@ Page Title="Anmelden" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="ASV.Account.Login" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>Anmelden
    </h2>
    <p>
        Geben Sie einen Benutzernamen und ein Kennwort ein.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">Registrieren</asp:HyperLink>
        wenn Sie über kein Konto verfügen.
    </p>

<%--Alter Entwurf
        <form id="Form1" runat="server">
            <LayoutTemplate>
                <span class="failureNotification">
                    <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                </span>
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="LoginUserValidationGroup" />
                <div class="accountInfo">
                    <fieldset class="login">
                        <legend>Kontoinformationen</legend>
                        <p>
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName"></asp:Label>
                            Benutzer: <asp:TextBox ID="UserName" runat="server" CssClass="textEntry" placeholder="Kundennummer"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                CssClass="failureNotification" ErrorMessage="Der Benutzername ist erforderlich." ToolTip="Der Benutzername ist erforderlich."
                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password"></asp:Label>
                            Kennwort:<asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password" placeholder="Passwort"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                CssClass="failureNotification" ErrorMessage="Ein Kennwort ist erforderlich." ToolTip="Ein Kennwort ist erforderlich."
                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:CheckBox ID="RememberMe" runat="server" />Angemeldet bleiben
                            <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline"></asp:Label>
                        </p>
                    </fieldset>
                    <p>
                        <asp:Button class="btn btn-primary" ID="LoginButton" runat="server" CommandName="Login" Text="Anmelden" ValidationGroup="LoginUserValidationGroup" onclick="LoginButton_Click"/>
                    </p>
                </div>
            </LayoutTemplate>
    </form>--%>


<%--
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Ziellayout -> läuft!!!!!!!!!!!!!!
 --%>   <form id="Form1" runat="server" class="form-horizontal">
<fieldset>

<!-- Form Name -->
    <legend>Kontoinformationen</legend>

    <!-- Text input-->
    <div class="control-group">
      <label class="control-label" for="UserName">Kundennummer</label>
      <div class="controls">
        <asp:TextBox id="UserName" runat="server" name="UserName" type="text" placeholder="Kundennummer" class="input-xlarge" required=""></asp:TextBox>
        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
        CssClass="failureNotification" ErrorMessage="Der Benutzername ist erforderlich." ToolTip="Der Benutzername ist erforderlich."
        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
      </div>
    </div>
    <!-- Password input-->
    <div class="control-group">
      <label class="control-label" for="Password">Kennwort</label>
      <div class="controls">
        <asp:TextBox id="Password" runat="server" name="Password" type="password" placeholder="Passwort" class="input-xlarge" required=""></asp:TextBox>
        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
        CssClass="failureNotification" ErrorMessage="Ein Kennwort ist erforderlich." ToolTip="Ein Kennwort ist erforderlich."
        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>

      </div>
    </div>
    <!-- Button -->
    <div class="control-group">
      <label class="control-label" for="LoginButton"></label>
      <div class="controls">
        <asp:Button runat="server" id="LoginButton" name="LoginButton" class="btn btn-primary" Text="Anmelden" ValidationGroup="LoginUserValidationGroup" onclick="LoginButton_Click"></asp:Button>
    
      </div>
    </div>

    </fieldset>
    </form>
    <asp:Label class="error" ID="errors" runat="server" Text=""></asp:Label>

</asp:Content>